<%-- 
    Document   : errores
    Created on : 16-nov-2010, 9:58:04
    Author     : Xarles - Borja
--%>
<%@page import="java.util.MissingResourceException"%>
<%@page import="java.util.ResourceBundle"%>
<%@page import="java.util.ArrayList"%>

<div class="errordatos">
    <% if (request.getAttribute("errores") != null) {
                    ResourceBundle bundle = (ResourceBundle) application.getAttribute("errores-mapeo");
                    for (String i : (ArrayList<String>) request.getAttribute("errores")) {
                            try {%>
    <%=bundle.getString(i)%><br>
    <%} catch (MissingResourceException ex) {%>
    <%=i%>
    <%}%>
    <%}
                              }%>
</div>